<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
 <%@ include file="/common/query.jsp"%>
<%@ include file="/common/det.jsp"%>
<script>
        $(function(){
            init();
        });
        function init(){

            var setting = {};
            var url ="";
            var p_insert = false;
            var p_del = false;
            var productAttrId = getQueryStringByDecode("productAttrId");
            var productCategoryAttrgroupAttrId = getQueryStringByDecode("productCategoryAttrgroupAttrId");

            var search = (getQueryStringByDecode("search")=="" || getQueryStringByDecode("search")=="true")
			var singleSelect = (getQueryStringByDecode("search")=="true" || getQueryStringByDecode("search")=="true")
            var columns = [
                {field:'id',title:'id',hidden:true},
                {field:'productAttrId',title:"productAttrId",hidden:true,defaultValue:productAttrId},
                {field:'productAttrValue',title:'值',require:true},
                {field:'productAttrEnValue',title:'英文值',require:true},
                {field:'enable',title:'是否启用',hidden:!search,
                    input:{type:'radio',value : [{text:'未启用',value:0,isDefault:true},{text:'已启用',value : 1}]}
                }

            ];
            url='/product/attr/value/manager?search_EQ_productAttrId='+productAttrId+"&productCategoryAttrgroupAttrId="+productCategoryAttrgroupAttrId;
            //setting.singleSelec	t = true;
            createQuery('body',columns,{pager:false,edit:search,add:search,searchBar:{hidden:true},del:search,heji:false,singleSelect:singleSelect,xuhao:false},url);
        };
</script>
</head>
<body>
	  <div id="body"></div>
</body>
</html>